	<template>
  <div>
    <div class="top">
      <div style="width: 60px" @click="returnTap">取消</div>
      <span>举报</span>
      <van-button  style="height: 30px" @click="returnTap"
        >提交</van-button
      >
    </div>
    <div class="title">选择举报类型</div>
    <div class="list">
      <div class="listOne" v-for="item of list">{{ item.name }}</div>
    </div>
    <div class="msg">上传相关图片<span>(必填)</span></div>
    <div class="add" @click="addTap">+</div>
    <div class="addText">请保证真实性</div>
    <div class="areDiv">
      <textarea
        class="textAre"
        placeholder="请输入举报内容"
        cols="30"
        rows="10"
      ></textarea>
    </div>
        <van-overlay
      :show="show"
      @click="show = false"
      style="background: rgba(30, 30, 30, 0.5)"
    >
      <div class="wrapper" @click.stop>
        <div class="block">
           <div class="blockOne ">拍摄</div>
          <div class="blockOne block1">从手机相册选择</div>
          <div class="blockOne" @click="show = false">取消</div>
        </div>
      </div>
    </van-overlay>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: [
        { name: "色情" },
        { name: "骚扰" },
        { name: "反动言论" },
        { name: "广告或垃圾信息" },
        { name: "其他" },
      ],
      show:false
    };
  },
  methods: {
    returnTap() {
      this.$router.go(-1);
    },
    addTap(){
    this.show=true
    }
  },
};
</script>
<style scoped>
.top {
  height: 60px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 60px;
  position: relative;
  background: #eeeeee;
}
.title {
  font-size: 15px;
  background: #eeeeee;
  width: 92%;
  padding: 10px 4%;
}
.listOne {
  width: 96%;
  padding-left: 4%;
  height: 50px;
  line-height: 50px;
  border-bottom: 1px solid #eeeeee;
  font-size: 15px;
}
.msg {
  width: 96%;
  padding-left: 4%;
  border-top: 5px solid #eeeeee;
  padding-top: 10px;
}
.add {
  width: 60px;
  height: 60px;
  margin-left: 4%;
  border-radius: 5px;
  border: 1.5px solid #ccc;
  font-size: 35px;
  text-align: center;
  line-height: 60px;
  margin-top: 10px;
}
.addText {
  margin: 10px 4%;
  font-size: 12px;
  color: #8b8b8b;
}
.areDiv{
    width: 100%;
    border-top: 5px solid #eeeeee;
  padding-top: 10px;
}
.textAre {
  width: 96%;
  height: 300px;
  padding: 2%;
  border: none;
}
.block {
  height: 215px;
  width: 100%;
  position: fixed;
  right: 0px;
  bottom: 0px;
  z-index: 100;
  background: rgba(255, 255, 255, 1);
  border-radius: 5px;
  z-index: 999;
}
.blockOne {
  height: 68px;
  width: 100%;
  text-align: center;
  line-height: 68px;
}
.block1 {
  border-bottom: 5px solid #bebebe;
}
</style>